//
//  YYArticleDetailModel.swift
//  STMusic
//
//  Created by stoneobs on 2017/6/12.
//  Copyright © 2017年 stoneobs. All rights reserved.
//

import UIKit

enum YYTrackModelType {
    case nomal;
    case isPlaying;
    case pause;
}
class YYArticleDetailModel: NSObject {

    var article:YYArticle = YYArticle();
    
    var author:YYAuthor? = YYAuthor();
    
    var cover_url:String? = "http://cdn.wawa.fm/group1/M00/01/5F/CvrcZ1kycKOAWGwJAAkjXiwLeso802.png";
    
    var create_time:String? = "1495873220";
    
    var des:String? = "在青春将逝之时，步入她的围墙吧！";//description
    
    var id:String? = "995957849";
    
    var musican_info:YYMusicaninfo = YYMusicaninfo();
    
    
    var track:YYTrack = YYTrack();
    
    
    var other_tracks:Array<Dictionary<String,Any>> = []{
    
        didSet{
    
            for dic in other_tracks{
            
                let trackModel = YYTrack.mj_object(withKeyValues: dic);
                self.tracks?.append(trackModel!);
            
            }
        }
    }
    
    var tracks:Array<YYTrack>? = [];
    
    var thumbnail_url:String? = "http://cdn.wawa.fm/group1/M00/01/5F/CvrcZ1kycKOAWGwJAAkjXiwLeso802_150X150.png";
    var title:String? = "房东的猫：把美好事物纯真的走完";
    var total_play_count:NSNumber? = 27692;
    
    var editor:String? = "sug";
}
class YYArticle: NSObject {
    
    var adimg:String? = "";
    var adlink:String? = "";
    var audit_time:String? = "";
    var auid:String? = "";
    var codepic:String? = "";
    var id:String? = "";
    var musiccode:String? = "";
    var reason:String? = "";
    var uid:String? = "";
    var yrid:String? = "";
    var content:String? = "";//h5 js
}
class YYAuthor: NSObject {
    
    var artnum:String? = "94";
    var birthday:String? = "2014-12-30";
    var bqname:String? = "";
    var card:String? = "http://cdn.wawa.fm/group1/M00/00/21/Cvtf3VVS3OiAcK5gAAI_AdDaSac613.jpg";
    var email:String? = "276111403@qq.com";
    var fsnum:String? = "1";
    var lanmu:String? = "543";
    var last_login_ip:String? = "2005124983";
    var last_login_time:String? = "1456714537";
    var login:String? = "568";
    var nickname:String? = "乐人无数";
    var pimg:String? = "http://wawa.fm/img/yueren_head.jpg";//头像
    var qq:String? = "";
    var reg_ip:String? = "3232286656";
    var reg_time:String? = "1430195493";
    var remark:String? = "阅人有术，乐人无数！";
}
class YYMusicaninfo: NSObject {
    

    
    var nickname:String? = "乐人无数";
    var pimg:String? = "http://cdn.wawa.fm/group1/M00/01/4D/CvrcZ1kpHcuAJIg8AAIm7PPY9HE706.jpg";
    var uid:String? = "886";
}
class YYTrack: NSObject {
    
    var create_date:String? = "2017-05-27 02:51:39";
    var create_time:String? = "1495867899";
    var filename:String? = "http://cdn.wawa.fm/group1/M00/01/4E/CvrcZ1kpIUqAHc4eAEZx7FcUPNw028.mp3";
    var filename192:String? = "http://cdn.wawa.fm/group1/M00/01/4E/CvrcZ1kpIU2AURPLAGmG9yXf7go878.mp3";
    var filename320:String? = "http://cdn.wawa.fm/group1/M00/01/4E/CvrcZ1kpIUyAL1KtAK-7NM1bwBI280.mp3";
    var fsize:String? = "4616684";
    var id:String? = "23344";
    var musician_id:String? = "995957849";
    var play_count:String? = "6321";
    var publish_time:String? = "1495867899";
    var resourcecode:String? = "20170527025139";
    var songer:String? = "房东的猫";
    var songname:String? = "爱你就像爱生命";
    var songphoto:String? = "http://cdn.wawa.fm/group1/M00/01/4E/CvrcZ1kpISuABOjXAAI7Of2hj00489.jpg";
    var thumbnail_url:String? = "http://cdn.wawa.fm/group1/M00/01/4E/CvrcZ1kpISuABOjXAAI7Of2hj00489_150X150.jpg";
    var uid:String? = "886";

    
    //自定义属性
    var indexString:String? = "1";
    
    var playType:YYTrackModelType? = YYTrackModelType.nomal;
    
    
    
}
